#include "CTronPlayer.h"
#include "CTronBoard.h"

CTronPlayer::CTronPlayer()
	: m_Name("Unknown Player")
{
	//m_CurrentPosition.SetPoint(0,0);
}

CTronPlayer::CTronPlayer(std::string _Name, CPoint2D _StartPosition)
	: m_Name(_Name)
	, m_CurrentPosition(_StartPosition)
{
}

CTronPlayer::~CTronPlayer()
{
}

std::string CTronPlayer::GetName()
{
	return m_Name;
}

CPoint2D CTronPlayer::GetPosition()
{
	return m_CurrentPosition;
}

bool CTronPlayer::SetPositon(CPoint2D _Point)
{
	m_CurrentPosition = _Point;
	if(m_CurrentPosition == _Point){
		return true;
	} else {
		return false;
	}	
}
